//
//  UserHandler.swift
//  民生生活
//
//  Created by apple on 2017/8/4.
//  Copyright © 2017年 youjindi.app.com. All rights reserved.
//

import UIKit

final class UserHandler: NSObject {
    
    static let share = UserHandler()
    static let user_id = "userId"

    
    private override init(){
        super.init()
    }

    final func getUserInfo(_ key:String) -> String{
        return UserDefaults.standard.object(forKey: key) as! String
    }
    
    final func saveUserInfo(_ value: AnyObject,_ key: String) -> Void{
        UserDefaults.standard.set(value, forKey: key)
    }
    
    

}
